package command;

/**
 * @Author: Ma JiBin
 * @Email: 1423553596@qq.com
 * @Date: 2018/9/11 13:59
 * @Description: 库存类
 * name : 货物名
 * quantity : 货物数量
 */
public class Stock {
    private String name = "iPhoneX";
    private int quantity = 10;

    public void buy() {
        System.out.println("Stock [ Name: " + name
                + ", Quantity: " + quantity + " ] bought");
    }

    public void sell() {
        System.out.println("Stock [ Name: " + name
                + ", Quantity: " + quantity + " ] sold");
    }
}
